home *** CD-ROM | disk | FTP | other *** search
/ Aminet 25 / Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso / Aminet / game / shoot / ADoom_src_1_2.lha / ADoom_src / r_plane.h < prev    next >
C/C++ Source or Header  |  1998-02-17  |  2KB  |  105 lines

  1. // Emacs style mode select   -*- C++ -*- 
  2. //-----------------------------------------------------------------------------
  3. //
  4. // $Id:$
  5. //
  6. // Copyright (C) 1993-1996 by id Software, Inc.
  7. //
  8. // This source is available for distribution and/or modification
  9. // only under the terms of the DOOM Source Code License as
  10. // published by id Software. All rights reserved.
  11. //
  12. // The source is distributed in the hope that it will be useful,
  13. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
  15. // for more details.
  16. //
  17. // DESCRIPTION:
  18. //    Refresh, visplane stuff (floor, ceilings).
  19. //
  20. //-----------------------------------------------------------------------------
  21.  
  22.  
  23. #ifndef __R_PLANE__
  24. #define __R_PLANE__
  25.  
  26.  
  27. #include "doomdef.h"
  28. #include "r_data.h"
  29.  
  30. #ifdef __GNUG__
  31. #pragma interface
  32. #endif
  33.  
  34.  
  35. // Visplane related.
  36. extern  short*        lastopening;
  37.  
  38.  
  39. typedef void (*planefunction_t) (int top, int bottom);
  40.  
  41. extern planefunction_t    floorfunc;
  42. extern planefunction_t    ceilingfunc_t;
  43.  
  44. //extern short        floorclip[SCREENWIDTH];
  45. //extern short        ceilingclip[SCREENWIDTH];
  46. extern short        *floorclip;
  47. extern short        *ceilingclip;
  48.  
  49. //extern FAR fixed_t    yslope[SCREENHEIGHT];
  50. //extern FAR fixed_t    distscale[SCREENWIDTH];
  51. extern fixed_t        *yslope;
  52. extern fixed_t        *distscale;
  53.  
  54. void resinit_r_plane (void);  //called before anything else
  55.  
  56. void R_InitPlanes (void);
  57. void R_ClearPlanes (void);
  58.  
  59. void
  60. R_MapPlane
  61. ( int        y,
  62.   int        x1,
  63.   int        x2 );
  64.  
  65. #ifdef AMIGA
  66. void
  67. __asm R_MakeSpans
  68. ( register __d2 int x,
  69.   register __d3 int t1,
  70.   register __d4 int b1,
  71.   register __d5 int t2,
  72.   register __d6 int b2 );
  73. #else
  74. void
  75. R_MakeSpans
  76. ( int        x,
  77.   int        t1,
  78.   int        b1,
  79.   int        t2,
  80.   int        b2 );
  81. #endif
  82.  
  83. void R_DrawPlanes (void);
  84.  
  85. visplane_t*
  86. R_FindPlane
  87. ( fixed_t    height,
  88.   int        picnum,
  89.   int        lightlevel );
  90.  
  91. visplane_t*
  92. R_CheckPlane
  93. ( visplane_t*    pl,
  94.   int        start,
  95.   int        stop );
  96.  
  97.  
  98.  
  99. #endif
  100. //-----------------------------------------------------------------------------
  101. //
  102. // $Log:$
  103. //
  104. //-----------------------------------------------------------------------------
  105.